package com.wang.lib;

import java.util.ArrayList;
import java.util.List;

public class myClass implements TestInterface {
    public static void main(String[] arg) {
        //TestInterface testInterface= new TestInterface() {
        //    @Override
        //    public void run() {
        //        System.out.print(Thread.currentThread());
        //    }
        //};
        //
        //testInterface.run();
        new Asyn() {
            @Override
            public void doInback(String param) {
                System.out.println(param);
            }
        }.exec("wang");


        new AsynTask<String>() {
            @Override
            public void doInback(String pS) {
                System.out.println(pS);
            }
        }.exeute("我爱你 我已经指定类型");


        new AsynTask() {
            @Override
            public void doInback(Object pO) {
                System.out.println(pO);
            }
        }.exeute(121 + "我爱你，啥都不知道时，就是Object");


        List list = new ArrayList();
        list.add(111);
        list.add("124");

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }

    }


    @Override
    public void run() {

    }
}
